.view-plan-detail {
  position: relative;
  display: flex;
  width: 100%;
  height: calc(100vh - 126px);
  padding: 0 24px;
  overflow: hidden;
  background-color: #fff;
  border-radius: 8px;

  &-content {
    flex: 1;
    overflow: hidden;
  }

  &-top {
    display: flex;
    align-items: center;
    margin-top: 16px;

    &-title {
      min-width: 400px;
      margin-left: 16px;
    }

    &-edit {
      margin-left: auto;
    }
  }

  .page-tabs-group {
    display: flex;
    height: 33px;
    margin-bottom: 32px;

    .page-tab {
      position: relative;
      margin: 0 16px;
      font-size: 16px;
      text-align: center;
      cursor: pointer;

      &:not(:last-child) {
        &::before {
          position: absolute;
          top: 2px;
          right: -16px;
          width: 1px;
          height: 20px;
          content: "";
          background: #dcdcdc;
        }
      }

      &:hover,
      &.active {
        font-weight: bold;
        color: #3b82f6;

        &::after {
          position: absolute;
          bottom: 0;
          display: block;
          width: 100%;
          height: 3px;
          content: " ";
          background-color: #3b82f6;
        }
      }

      &:first-child {
        margin-left: 0;
      }
    }
  }

  .view-plan-title {
    height: 22px;
    margin-bottom: 16px;
    font-size: 16px;
    font-weight: bold;
    line-height: 22px;
    color: rgb(0 0 0 / 80%);
  }

  .view-plan-wrap {
    margin-bottom: 32px;
    border-top: 1px solid #dfdfdf;
    border-left: 1px solid #dfdfdf;

    &.noborder {
      border-style: none;
    }

    .view-plan-content {
      display: flex;
      color: #000;

      .view-plan-item {
        display: flex;
        width: 33.3333%;

        // line-height: 40px;
        border-right: 1px solid #dfdfdf;
        border-bottom: 1px solid #dfdfdf;

        .label {
          display: flex;
          flex-shrink: 0;
          align-items: center;
          justify-content: flex-end;
          width: 160px;
          padding: 8px 12px;
          font-size: 14px;
          font-weight: bold;
          line-height: 22px;
          background: #e7eefb;
          border-right: 1px solid #dfdfdf;
        }

        .text {
          display: flex;
          flex: 1;
          flex-wrap: wrap;
          align-items: center;
          padding: 8px 12px;
          font-size: 14px;
          line-height: 22px;
          word-break: break-all;

          .tag {
            height: 22px;
            padding: 0 8px;
            font-size: 12px;
            line-height: 22px;
            color: rgb(0 0 0 / 80%);
            text-align: center;
            border-radius: 4px;
          }
        }

        &.large {
          width: 66.6666%;
        }

        &.plus {
          width: 100%;
        }
      }
    }

    &.view-plan-wrap-second {
      margin-bottom: 12px;
      border-top: 0;

      .view-plan-content {
        justify-content: space-between;

        .view-plan-item {
          border-top: 1px solid #dfdfdf;
        }

        .view-plan-btn {
          display: flex;
          align-items: center;
          height: 40px;
          margin-left: 16px;
          line-height: 40px;
        }
      }
    }
  }

  .plan-table {
    --px-table-border-color: #dfdfdf;

    font-size: 14px;

    :deep(.px-table__header) {
      thead {
        tr {
          background-color: #e7eefb !important;

          th {
            font-size: 14px;
            font-weight: bold;
            color: #000;
            background-color: #e7eefb !important;
          }
        }
      }
    }

    .tag {
      width: 52px;
      height: 22px;
      font-size: 12px;
      line-height: 22px;
      color: rgb(0 0 0 / 80%);
      text-align: center;
      border-radius: 4px;
    }
  }
}
